﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class CTDatmonBUS
    {
        public static DataTable GetCTDatmon(int maban)
        {
            DataTable dt= CTDatMonDAO.GetCTDatMon(maban);
            return dt;
        }
        public static bool Themchitiet(CTDatMonDTO ct)
        {
            int kt = CTDatMonDAO.Themchitiet(ct);
            if (kt > 0)
                return true;
            return false;
        }
        public static bool CheckDatMon(int madm, int mamon)
        {
            int kt = CTDatMonDAO.CheckDatMon(madm, mamon);
            if (kt > 0)
                return true;
            return false;
        }
        public static bool Capnhatdatmon(int madm, int mamon, int sl)
        {
            int kt = CTDatMonDAO.Capnhatdatmon(madm, mamon, sl);
            if (kt > 0)
                return true;
            return false;
        }
    }
}
